package com.mls.fivedistrict.entity.request;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 更新密码请求参数
 * Created by chenxiuxiang on 2018/5/18.
 */
@Getter
@Setter
public class UpdatePasswordRequest {
    private Long userId;

    /**
     * 新密码
     */
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6, max = 16, message = "密码长度为6~16位")
    private String newPassword;
    /**
     * 验证码
     */
    @NotEmpty(message = "验证码不能为空")
    @Length(min = 4, message = "验证码长度不对")
    private String captcha;
}
